<template>
  <!-- 说明 -->
  <div class="pho-form-item">
    <van-field
      readonly
      :label="showLabel ? $attrs.label : ''"
      :required="$attrs.required"
      input-align="right"
    >
      <template slot="input">
        <div :style="{ color: this.$attrs.textColor }">
          <i
            v-if="this.$attrs.icon"
            :class="this.$attrs.icon"
            style="margin-right: 5px"
          />
          <span>{{ value }}</span>
        </div>
      </template>
    </van-field>
  </div>
</template>

<script>
export default {
  name: "phone-form-remark",
  props: {
    value: {
      type: [Number, String],
      default: 0,
    },
    // 是否展示标题
    showLabel: {
      type: Boolean,
      default: true,
    },
  },
};
</script>

<style lang="scss" scoped></style>
